Search found 12 matches
- Wed Jun 01, 2016 4:15 am
- Forum: Open Source Nagios Projects
- Topic: HP Switch 2530
- Replies: 8
- Views: 5483
Re: HP Switch 2530
Thanks for all your help but I managed to resolve it myself. I was downloading the script on a windows pc and moving over to linux pc using winscp. somehow it was causing the issue. I set my notepad++ to unix mode in settings and created a new file and named it same as hp_snmp_hp-procurve.sh and pas...
- Wed Jun 01, 2016 2:44 am
- Forum: Open Source Nagios Projects
- Topic: HP Switch 2530
- Replies: 8
- Views: 5483
Re: HP Switch 2530
As requested.
[root@nagios ~]# su nagios
[nagios@nagios root]$ /usr/local/nagios/libexec/check_snmp_hp-procurve.sh public 192.168.3.48
bash: /usr/local/nagios/libexec/check_snmp_hp-procurve.sh: /bin/bash^M: bad interpreter: No such file or directory
[nagios@nagios root]$
[root@nagios ~]# su nagios
[nagios@nagios root]$ /usr/local/nagios/libexec/check_snmp_hp-procurve.sh public 192.168.3.48
bash: /usr/local/nagios/libexec/check_snmp_hp-procurve.sh: /bin/bash^M: bad interpreter: No such file or directory
[nagios@nagios root]$
- Tue May 31, 2016 9:51 am
- Forum: Open Source Nagios Projects
- Topic: HP Switch 2530
- Replies: 8
- Views: 5483
Re: HP Switch 2530
Could you post the plugin to the forum, as well as the command definition in nagios that these checks are using? Thanks! I would try my best define command { command_name check_snmp_hp-procurve command_line $USER1$/check_snmp_hp-procurve.sh public $HOSTADDRESS$ #command_line /usr/local/nagios/libex...
- Tue May 31, 2016 2:47 am
- Forum: Open Source Nagios Projects
- Topic: HP Switch 2530
- Replies: 8
- Views: 5483
Re: HP Switch 2530
The output is
-rwxr-xr-x. 1 nagios nagios 3295 Sep 26 2014 /usr/local/nagios/libexec/check_snmp_hp-procurve.sh
-rwxr-xr-x. 1 nagios nagios 3295 Sep 26 2014 /usr/local/nagios/libexec/check_snmp_hp-procurve.sh
- Fri May 27, 2016 4:13 am
- Forum: Open Source Nagios Projects
- Topic: HP Switch 2530
- Replies: 8
- Views: 5483
HP Switch 2530
Hi, I have replaced our switches to HP 2530POE+ and Nagios core is showing "(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp_hp-procurve.sh, ...) failed. errno is 2: No such file or directory " and memory error SNMP CRITICAL - free *39918564* bytes . I have tried f...
- Wed Oct 08, 2014 2:54 am
- Forum: Open Source Nagios Projects
- Topic: check_mrtgtraf: Unable to open MRTG log file
- Replies: 11
- Views: 4942
Re: check_mrtgtraf: Unable to open MRTG log file
Here is the output as requested. [root@nagios ~]# ls -la /var/log/mrtg.log -rw-r--r--. 1 root root 344524 Oct 8 08:45 /var/log/mrtg.log [root@nagios ~]# and [root@nagios ~]# ls -al /var/lib/mrtg/ total 8 drwxrwxrwx. 2 nagios nagios 4096 Nov 12 2012 . drwxr-xr-x. 40 root root 4096 Sep 24 13:48 .. -rw...
- Tue Oct 07, 2014 9:15 am
- Forum: Open Source Nagios Projects
- Topic: check_mrtgtraf: Unable to open MRTG log file
- Replies: 11
- Views: 4942
Re: check_mrtgtraf: Unable to open MRTG log file
I have run the command and I did not see any output
[root@nagios ~]# /usr/bin/env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg –logging /var/log/mrtg.log
[root@nagios ~]#
[root@nagios ~]# /usr/bin/env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg –logging /var/log/mrtg.log
[root@nagios ~]#
- Fri Oct 03, 2014 4:37 pm
- Forum: Open Source Nagios Projects
- Topic: check_mrtgtraf: Unable to open MRTG log file
- Replies: 11
- Views: 4942
Re: check_mrtgtraf: Unable to open MRTG log file
Hi,
Just run it or copy it in cron?
Just run it or copy it in cron?
- Fri Oct 03, 2014 3:42 am
- Forum: Open Source Nagios Projects
- Topic: check_mrtgtraf: Unable to open MRTG log file
- Replies: 11
- Views: 4942
Re: check_mrtgtraf: Unable to open MRTG log file
Sorry it has gone back to same error
check_mrtgtraf: Unable to open MRTG log file
check_mrtgtraf: Unable to open MRTG log file
- Fri Oct 03, 2014 3:04 am
- Forum: Open Source Nagios Projects
- Topic: check_mrtgtraf: Unable to open MRTG log file
- Replies: 11
- Views: 4942
Re: check_mrtgtraf: Unable to open MRTG log file
This morning I changed my service def as well to define service{ use generic-service host_name Master service_description Port 1 Bandwidth Usage check_command check_local_mrtgtraf!/var/www/mrtg/192.168.3.40_1.log!AVG!1000000,2000000!5000000,5000000!10 } and restarted nagios service. Now I get MRTG d...