(When testing a plugin - use the full path to the plugin)
1. Download & unTar
Download and copy the extracted new plugin to /usr/local/nagios/libexec/
2. Setup new service in commands.cfg
#Monitor Printer via SNMP
define command{
command_name check_printer
command_line check_printer.sh
}
3. Verify Nagios Configuration
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
4. Setup Service
vi /usr/local/nagios/etc/objects/
define service{
use generic-service ; Inherit values from a template
host_name BHLHROPSCOLOUR,BHMANOPS,BHLHRACC,BHLHROPSCOLOUR,BHLHROPS,ScannerFaxCopier
service_description Printer Status ; The service description
check_command check_printer ; The command used to monitor the service
normal_check_interval 10 ; Check the service every 10 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
5. Restart Nagios
/etc/init.d/nagios restart
try accessing using snmpwalk to see if you can access the device
snmpwalk -c public -v 1 200.200.200.123
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2010
(114)
-
▼
October
(29)
- Old laptop + Ubuntu
- Ubuntu update
- Ubuntu 10.10 - Sound freeze on Toshiba Satellite P...
- Ubuntu 10.10 - Sakis3g
- Windows 2008 R2 - RemoteApp Certificate Error
- MS Window 2008 R2 - Remote Desktop Services
- Microsoft Dynamics GP 2010 Error "FP: Bad componen...
- WatchGuard - FireCluster layout
- Exchange 2007 - exporting mailboxes - "mapi error"
- Nagios - monitor sql server
- Nagios: check_nt (my examples)
- MS Dynamics GP 2010 & Win 2008 R2 Terminal Server
- Microsoft Dynamics GP 2010 - Company Databases & N...
- Microsoft Dynamics GP 2010 - Setting up new Instan...
- Microsoft Exchange 2007 - exporting mailboxes
- Sophos Enterprise Management
- Sophos Management Console Error "CoInitializeSecur...
- Microsoft Dynamics GP 2010 - Terminal Server (2008...
- Microsoft Dynamics GP 2010 - error message
- Microsoft Dynamics GP 2010 - upgrade to SP1 *issues*
- Microsoft Dynamics GP 2010 - Peak inside...
- Nagios: Getting SNMP MIB Information
- GP
- MS SQL 2008 Server - Activity Monitor
- Nagios - setting up a new service (Check_Printer)
- Nagios - Frequently used commands
- Nagios - changing main screen after upgrade
- Nagios - check setup
- GP Dynamics 2010 - RPC Server unavailable
-
▼
October
(29)
No comments:
Post a Comment