Page 1 of 2
Can't detect all disk
Posted: Wed Jul 23, 2014 12:51 am
by pianunix
Hi,
Today i was trying to detect all the disk drive using plugin check_usolved_disks,
./check_usolved_disks -H localhost -C public -w 90 -c 95
./check_usolved_disks: line 6: syntax error near unexpected token `newline'
./check_usolved_disks: line 6: `<!DOCTYPE html>'
ref:
http://exchange.nagios.org/directory/Pl ... ks/details
Please give me a clue for this ?
Thanks.
Re: Can't detect all disk
Posted: Wed Jul 23, 2014 1:44 am
by Box293
It's more than likely that you've copied and pasted the plugin from the website and have included the HTML content.
From this URL:
https://github.com/usolved/check_usolve ... _disks.php
I was able to select all the text on screen, copy it and paste it into a file and then upload that file to my nagios host and it worked OK.
Re: Can't detect all disk
Posted: Wed Jul 23, 2014 2:39 am
by pianunix
HI,
I've tried to, but still no get results
Code: Select all
./check_usolved_disks.php -H localhost -C public -V 2 -w 90 -c 95 _P yes
:/usr/lib/nagios/plugins#
Another solution about this ?
Thx
Re: Can't detect all disk
Posted: Wed Jul 23, 2014 3:43 am
by Box293
Please upload the plugin here (check_usolved_disks.php), rename it as a text file first.
Re: Can't detect all disk
Posted: Thu Jul 31, 2014 2:58 am
by pianunix
Hi,
Here is my configuration file
Re: Can't detect all disk
Posted: Thu Jul 31, 2014 3:08 pm
by lmiltchev
Try running this:
Code: Select all
./check_usolved_disks.php -H localhost -C public -V 2c -w 90 -c 95 -P
Also, check if snmpd is running:
Re: Can't detect all disk
Posted: Fri Aug 01, 2014 1:16 am
by pianunix
^ Nothing happen.
Fyi i'm using debian squeeze on the server right know.
Thanks
Re: Can't detect all disk
Posted: Fri Aug 01, 2014 12:08 pm
by sreinhardt
Are you able to query snmp locally?
Re: Can't detect all disk
Posted: Mon Aug 04, 2014 5:39 am
by pianunix
Yes we can,
Code: Select all
nmap -sU -p 162 localhost
Starting Nmap 5.00 ( http://nmap.org ) at 2014-08-04 10:39
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
162/udp closed snmptrap
Nmap done: 1 IP address (1 host up) scanned in 0.24 seconds
Re: Can't detect all disk
Posted: Mon Aug 04, 2014 12:26 pm
by tmcdonald
I believe that was supposed to be port 161:
Sorry for the confusion. And what was the output of this command?