installing a nagios plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: installing a nagios plugin

Post by Box293 »

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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: installing a nagios plugin

Post 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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
l_freez
Posts: 13
Joined: Sat Oct 25, 2014 3:06 pm

Re: installing a nagios plugin

Post 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 ;)
Last edited by l_freez on Sun Nov 30, 2014 2:54 am, edited 2 times in total.
l_freez
Posts: 13
Joined: Sat Oct 25, 2014 3:06 pm

Re: installing a nagios plugin

Post 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 ????
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: installing a nagios plugin

Post by abrist »

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.
Locked