Page 1 of 1

Nagios running on a cent os desk top version

Posted: Fri Aug 09, 2013 6:52 am
by lukecolb
Hi

Does anyone see much of a downside to this. I'd install the desktop version of cent os on a server and just run nagios on it and probably turn the gui off

The reason for this is I want to a 3g dongle to send out text alerts but can only get this working on desktop versions of linux and and not server


Luke

Re: Nagios running on a cent os desk top version

Posted: Fri Aug 09, 2013 10:44 am
by abrist
You can, but you may have some pathing/env var issues depending on the installation method of nagios.

Re: Nagios running on a cent os desk top version

Posted: Sat Aug 10, 2013 4:19 am
by lukecolb
I would be compiling

Re: Nagios running on a cent os desk top version

Posted: Mon Aug 12, 2013 9:45 am
by slansing
You can go ahead with the installation, but you may run into issues as stated above, we recommend and support clean installations on a minimal distro installation without a GUI. Though, if you do have problems we can try to help you through them.

Re: Nagios running on a cent os desk top version

Posted: Tue Aug 13, 2013 6:19 am
by lukecolb
Thanks

This won't be the right place for this but hopefully you can point me in the right direction ideally i'd like to keep in on my clean install but if i want txt alerts working via a 3g modem I'm not sure I'll be able too.

All I do is from a clean install of desktop or server cent os and ubuntu

Install usb_modeswitch this changes the id of the usb dongle to the correct id as it thinks it’s a cd drive to begin with , this works perfectly doing lsusb shows me this.

Then

Chmod 0777 on /dev/ttyUSB2 #to give permission to the device

Then on another ssh session cat /dev/ttyUSB2

Here you see a few things about the device scroll through every so often like signal to noise etc but seeing this means I know I have the right devices as it sets up 3 ttyUSB (on different dongles it can be ttyUSB1)

Then on the first window

chat TIMEOUT 1 "" "AT+CMGF=1" "OK" > /dev/ttyUSB2 # this put its in text mode ready to except my next messages

chat TIMEOUT 1 "" "AT+CMGS=\"xxxxxxxxxxx\"" "OK" > /dev/ttyUSB2 #replace xxxxxxxxxxxxx with the mobile number

chat TIMEOUT 1 "" "Message text goes here" "OK" > /dev/ttyUSB2

chat TIMEOUT 1 "" "^Z" "OK" > /dev/ttyUSB2 # this sends the messge


On the desktop version this works perfectly from a clean install on the same hardware

On server verisons

On sending the first of the chat commands I get something like the below in the cat window

AAAAAAAAATATATATAT+AT+AT+AT+AT+AT+CAT+CAT+CAT+CAT+CAT+MCAT+MCAT+MCAT+MCAT+MCAGT+MCAGT+MCAGT+MCAGT+MCAGTF+MCAGTF+MCAGTF+MCAGTF+MCAGTF+=MCAGTF+=MCAGTF+=MCAGTF+=MCAGTF+=M1CAGTF+=M1CAGTF+=M1CAGTF+=M1CAGTF+=M1CAGTF+=M1


NO CARRIER


I get the same type of message if I send another chat command in the same format that just returns the make of the device but if I send it like 20 times its always different and one of them might actually work I've done so much searching and asking and go absolutly no where the strangest thing is that it does actually work ocasionly.

Re: Nagios running on a cent os desk top version

Posted: Tue Aug 13, 2013 10:35 am
by slansing
This is something you are going to want to contact your device vendor for as it is hard to speculate here, it is possible that you do not have the correct dependencies or that something on the server version is restricting the device's access to certain things. Once again, all speculation as we do not know the hardware nor the environment.

Re: Nagios running on a cent os desk top version

Posted: Mon Aug 19, 2013 8:28 am
by lukecolb
Thanks

I'll try but I expect the response from Vodafone will be they don't support it.

Re: Nagios running on a cent os desk top version

Posted: Mon Aug 19, 2013 9:52 am
by slansing
Great, let us know what you hear back.

Re: Nagios running on a cent os desk top version

Posted: Tue Aug 20, 2013 5:13 am
by lukecolb
I was refered to their developer site so i've just posted on that forum.

Once\If I've got it sorted I'll write a guide.

Re: Nagios running on a cent os desk top version

Posted: Tue Aug 20, 2013 9:37 am
by slansing
Awesome! I'll keep this thread open so you can pop your head in if you want to some time!