"check_snmp_patchlevel.pl" plugin giving NULL value
Posted: Fri Aug 03, 2012 5:52 am
Hello Nagios Experts,
I am getting NULL value in my nagios frontend, while the same plugin is worked properly through command line. Please have a look of my Nagios configuration.
File "CISCO-PATCH.CFG"
define service {
use generic-patch-nw
host_name Cisco 2960 Switch_10
service_description check_snmp_ios
check_command check_snmp_cisco_ios!-C g1plcis2960
}
File "COMMANDS.CFG"
define command{
command_name check_snmp_cisco_ios
command_line $USER1$/check_snmp_patchlevel.pl -H $HOSTADDRESS$ -g ios -C $ARG1$
}
################################################
Through Linux Shell, executed below command.
./check_snmp_patchlevel.pl -H 192.168.1.1 -C snmp4admin -g ios
IOS Version: 12.4(11)T1 | Cisco IOS Software, 2801 Software (C2801-ADVIPSERVICESK9-M), Version 12.4(11)T1, RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 25-Jan-07 14:08 by prod_rel_team
Thus, the same value doesn't reflect in Nagios Front End. So, please let me know how to resolve this issue.
Advanced Thanks,
Nishith N.Vyas
I am getting NULL value in my nagios frontend, while the same plugin is worked properly through command line. Please have a look of my Nagios configuration.
File "CISCO-PATCH.CFG"
define service {
use generic-patch-nw
host_name Cisco 2960 Switch_10
service_description check_snmp_ios
check_command check_snmp_cisco_ios!-C g1plcis2960
}
File "COMMANDS.CFG"
define command{
command_name check_snmp_cisco_ios
command_line $USER1$/check_snmp_patchlevel.pl -H $HOSTADDRESS$ -g ios -C $ARG1$
}
################################################
Through Linux Shell, executed below command.
./check_snmp_patchlevel.pl -H 192.168.1.1 -C snmp4admin -g ios
IOS Version: 12.4(11)T1 | Cisco IOS Software, 2801 Software (C2801-ADVIPSERVICESK9-M), Version 12.4(11)T1, RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 25-Jan-07 14:08 by prod_rel_team
Thus, the same value doesn't reflect in Nagios Front End. So, please let me know how to resolve this issue.
Advanced Thanks,
Nishith N.Vyas