Page 2 of 2

Re: installing a nagios plugin

Posted: Sat Nov 29, 2014 4:47 pm
by Box293
You are going to need to add some more options to the command such as -C public -t temp

Re: installing a nagios plugin

Posted: Sun Nov 30, 2014 12:32 am
by eloyd
I assumed above things are installed well and now its showing this
Which of these commands is the one that worked for installing the Perl module?

Re: installing a nagios plugin

Posted: Sun Nov 30, 2014 2:48 am
by l_freez
Box293 wrote:You are going to need to add some more options to the command such as -C public -t temp
:D yes now its working

[root@localhost ~]# /usr/local/nagios/libexec/check-cisco.pl -H 10.238.80.11 -C public -t fan
Fans: OK - 1 Fans are running all good | total=1 err=0

[root@localhost ~]# /usr/local/nagios/libexec/check-cisco.pl -H 10.238.80.11 -C public -t ps
PS: OK - 1 PS are running all good | total=1 err=0

[root@localhost ~]# /usr/local/nagios/libexec/check-cisco.pl -H 10.238.80.11 -C public -t cpu
Cpu: CRIT - Cpu Load 9% 8% 8% | cpu_5s=9percent;0;0 cpu_1m=8percent cpu_5m=8percent

[root@localhost ~]# /usr/local/nagios/libexec/check-cisco.pl -H 10.238.80.11 -C public -t mem
Memory: OK - Free Memory 72% | memory_total=33MB memory_used=9MB

[root@localhost ~]# /usr/local/nagios/libexec/check-cisco.pl -H 10.238.80.11 -C public -t freeint
Free Interfaces: OK - 25/50 free interfaces for 14 days | total_int=53 total_eth=50 total_eth_free=25

[root@localhost ~]# /usr/local/nagios/libexec/check-cisco.pl -H 10.238.80.41 -C public -t int -i FastEthernet0/10
CRIT: FastEthernet0/10 -> down | int=0

I'll move to next step and reply back.. thanks ;)

Re: installing a nagios plugin

Posted: Sun Nov 30, 2014 2:52 am
by l_freez
eloyd wrote:
I assumed above things are installed well and now its showing this
Which of these commands is the one that worked for installing the Perl module?
I think these three are work for me..

#yum install cpan App::cpanminus
#perl -MCPAN -e shell
#install Net::SNMP


is it ok ??

when I running that script its showing like this & its working

[root@localhost ~]# /usr/local/nagios/libexec/check-cisco.pl -H 10.238.80.11 -C public -t fan
Fans: OK - 1 Fans are running all good | total=1 err=0

i think Net::SNMP Perl modules installed well right ????

Re: installing a nagios plugin

Posted: Mon Dec 01, 2014 12:12 pm
by abrist
Yep, all looks good. Locking it up :)