installing a nagios plugin
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: installing a nagios plugin
You are going to need to add some more options to the command such as -C public -t temp
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: installing a nagios plugin
Which of these commands is the one that worked for installing the Perl module?I assumed above things are installed well and now its showing this
Re: installing a nagios plugin
yes now its workingBox293 wrote:You are going to need to add some more options to the command such as -C public -t temp
[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
Last edited by l_freez on Sun Nov 30, 2014 2:54 am, edited 2 times in total.
Re: installing a nagios plugin
I think these three are work for me..eloyd wrote:Which of these commands is the one that worked for installing the Perl module?I assumed above things are installed well and now its showing this
#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
Yep, all looks good. Locking it up
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.